package com.jeethink.user.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeethink.common.core.annotation.Excel;
import com.jeethink.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 【请填写功能名称】对象 arg_user_mar
 * 
 * @author jeethink
 * @date 2020-10-14
 */
public class ArgUserMar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 用户角色 */
    @Excel(name = "用户角色")
    private Integer userRoleId;

    /** 所在区域 */
    @Excel(name = "所在区域")
    private Long areaId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String realName;

    /** 密码现状 */
    @Excel(name = "密码现状")
    private Integer pwdActuality;

    /** 登录次数 */
    @Excel(name = "登录次数")
    private Integer loginCount;

    /** 最新登陆时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最新登陆时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserRoleId(Integer userRoleId) 
    {
        this.userRoleId = userRoleId;
    }

    public Integer getUserRoleId() 
    {
        return userRoleId;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }
    public void setPwdActuality(Integer pwdActuality) 
    {
        this.pwdActuality = pwdActuality;
    }

    public Integer getPwdActuality() 
    {
        return pwdActuality;
    }
    public void setLoginCount(Integer loginCount) 
    {
        this.loginCount = loginCount;
    }

    public Integer getLoginCount() 
    {
        return loginCount;
    }
    public void setLoginTime(Date loginTime) 
    {
        this.loginTime = loginTime;
    }

    public Date getLoginTime() 
    {
        return loginTime;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userRoleId", getUserRoleId())
            .append("areaId", getAreaId())
            .append("realName", getRealName())
            .append("pwdActuality", getPwdActuality())
            .append("loginCount", getLoginCount())
            .append("loginTime", getLoginTime())
            .append("userName", getUserName())
            .toString();
    }
}
